home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 75
/
MOBICLIC 75.ISO
/
pc
/
DATA
/
TOUTEDIT
/
TOUT_MATOS.cst
/
00009_Script_GESTION_ZONE_DEPOT_GOOD
< prev
next >
Wrap
Text File
|
2005-06-15
|
3KB
|
81 lines
property pSprite, pSpriteNo,pMembername,pSpriteName
property pPisteselect, prect,ptargetOK,ptargetKO,pFlagroll,pXmin,pYmin,pXmax,pYmax
property pFlagbulle,pcodebulle,pcodeLOC,pFlagselect,pNopiece
----------------------------------
on getPropertyDescriptionList(me)
L = [:]
L[#ptargetOK] = [#comment:"label cible si lΓcher OK",#format:#string,#default:EMPTY]
L[#ptargetKO] = [#comment:"label cible si lΓcher mauvais",#format:#string,#default:EMPTY]
L[#pFlagroll] = [#comment:"highlight au roll de la cible? ",#format:#boolean,#default:TRUE]
L[#pXmin] = [#comment:"dΘplacement:Xmin ",#format:#integer,#default:0]
L[#pYmin] = [#comment:"dΘplacement:Ymin ",#format:#integer,#default:0]
L[#pXmax] = [#comment:"dΘplacement:Xmax ",#format:#integer,#default:640]
L[#pYmax] = [#comment:"dΘplacement:Ymax ",#format:#integer,#default:480]
L[#pFlagbulle] = [#comment:"bulle au survol?",#format:#boolean,#default:FALSE]
L[#pcodebulle]= [#comment:"code info-bulle",#format:#string,#default:EMPTY]
L[#pcodeLOC]= [#comment:"code position bulle",#format:#string,#default:EMPTY]
return L
end
------------------------------------
on beginsprite me
pSpriteNo = me.spriteNum
pSprite = _movie.sprite(pSpriteNo)
pMembername = pSprite.member.name
pSpriteName = pSprite.name
prect = pSprite.rect
end
-----------------------------------
on exitFrame me
case(pFlagselect) of
0:-- aucune piΦce n'est saisie
nothing
-1:-- la piΦce saisie vient d'Ωtre relΓchΘe
_player.cursor(-1)
zrect = sprite(pPisteselect).rect
if intersect(prect,zrect) = rect(0,0,0,0) then
_movie.puppetSprite(pPisteselect,FALSE)
pFlagselect = 0
if pFlagbulle then
bulle(0)
end if
_movie.go(ptargetKO)
exit
else
pFlagselect = 0
if pFlagbulle then
bulle(0)
end if
_movie.go(ptargetOK)
exit
end if
99:-- la piΦce saisie est prΩte α Ωtre bougΘe
_player.cursor(290)
sprite(pPisteselect).loc = point(min(pXmax,max(pXmin,the mouseH)),min(pYmax,max(pYmin,the mouseV)))
zrect = sprite(pPisteselect).rect
if pFlagroll then
if intersect(prect,zrect) <> rect(0,0,0,0) then
pSprite.member = "POINT_SURVOL"
if pFlagbulle then
bulle(pcodebulle,pcodeLOC,me,1,1,0)
end if
else
_movie.puppetSprite(pSpriteNo,FALSE)
if pFlagbulle then
bulle(0)
end if
end if
end if
_movie.updateStage()
otherwise:-- une piΦce vient d'Ωtre saisie, pFlagselect est le n░ de sa piste
pmemloc = sprite(pFlagselect).loc
pPisteselect = pFlagselect
pFlagselect = 99
end case
end
---------------------------------
on glidepo me, NoPISTE
pFlagselect = NoPISTE
end
--------------------------------